package com.ytzl.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ytzl.mapper.ItripUserLinkUserMapper;
import com.ytzl.service.ItripUserLinkUserService;
import com.ytzl.model.ItripUserLinkUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ItripUserLinkUserServiceImpl extends ServiceImpl<ItripUserLinkUserMapper, ItripUserLinkUser>
    implements ItripUserLinkUserService{

    @Autowired
    private ItripUserLinkUserMapper itripUserLinkUserMapper;

    @Override
    public List<ItripUserLinkUser> getAllItripUserLinkUser() {
        return itripUserLinkUserMapper.selectList(null);
    }

    @Override
    public int addItripUserLinkUser(ItripUserLinkUser itripUserLinkUser) {
        return itripUserLinkUserMapper.insert(itripUserLinkUser);
    }

    @Override
    public int delItripUserLinkUser(Long id) {
        return itripUserLinkUserMapper.deleteById(id);
    }

    @Override
    public int updItripUserLinkUser(ItripUserLinkUser itripUserLinkUser) {
        return itripUserLinkUserMapper.updateById(itripUserLinkUser);
    }
}




